package cn.tedu.cgb2104boot01.controller;

import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("car")
public class CarController {



    @RequestMapping("get")
    public void get(){
        System.out.println("132");
    }

    @RequestMapping("getCar")
    public String getCar(){
        Car car = new Car();
        car.setId(1);
        car.setName("宝马X5");
        car.setColor("黑色");
        car.setType(2);
        car.setPrice(300000);
        return car.toString();
    }
}
